<?php
namespace app\admin\controller;

use app\common\lib\file_operate\FileOperate;
use app\common\lib\Upload;
use cmf\controller\AdminBaseController;

class TestController extends AdminBaseController
{

    public function __construct()
    {

    }

    /**
     * 文件上传类
     */
    public function upload()
    {
        $file = $_FILES;

        $fo = new FileOperate();

        $res = $fo->uploadImg($file['upload'], '/plugins/member/view/');

        dump($res);

    }

}
